package com.kapcb.mvc.properties;

import com.google.common.collect.Lists;
import com.kapcb.common.constant.PropertiesConstant;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

/**
 * <a>Title: MvcProperties </a>
 * <a>Author: kapcb <a>
 * <a>Description: MvcProperties <a>
 *
 * @author Kpacb
 * @version 1.0
 * @date 2024/6/13 14:34
 * @since 1.0
 */
@Data
@NoArgsConstructor
@ConfigurationProperties(prefix = PropertiesConstant.PROPERTIES_PREFIX + ".mvc")
public class MvcProperties {

    /**
     * 需要进行鉴权的接口路径
     */
    private List<String> includeAuthUrlPrefix = Lists.newArrayList("/**");

    /**
     * 不需要进行鉴权的接口路径
     */
    private List<String> excludeAuthUrlPrefix = Lists.newArrayList();

}
